<div class="grid_12">
	<h1 class="nickname">
		<?= $this->user->username;?>
	</h1>
	<div class="grid_3 alpha">
		<div class="avatar">
			<?php if($this->user->photo):?>
				<?= $this->Getimg('/upload/media/pictures/avatars/medium/' . $this->user->photo, $this->user->username);?>
			<?php else:?>
				<?= $this->Getimg('/upload/media/pictures/avatars/medium/nopic.jpg', $this->user->username);?>
			<?php endif;?>
		</div>
		<div class="usermenu">
			<ul>
				<li>
					<a href="<?= $this->url(array('alias' => $this->user->username),'users_index_sendmessage');?>" title="<?= $this->translate('Отправить сообщение');?>">
						<?= $this->translate('Отправить сообщение');?>
					</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="grid_9 omega">
		<ul>
			<?php if($this->user->Profile_Users_Alias->show_me == '1'): ?>
				<?php if($this->user->Profile_Users_Alias->show_birthday == '1' && $this->user->Profile_Users_Alias->birthday):?>
					<li>
						<span class="label">
							<?= $this->translate('Дата рождения:');?>
						</span> <?= $this->Getdate($this->user->Profile_Users_Alias->birthday);?>
					</li>
				<?php elseif($this->user->Profile_Users_Alias->birthday): ?>
					<li>
						<span class="label">
							<?= $this->translate('Возраст:');?>
						</span> <?= $this->Age($this->user->Profile_Users_Alias->birthday);?>
					</li>
				<?php endif; ?>
				<li>
					<span class="label"><?= $this->translate('Пол:');?></span> 
					<?php if($this->user->Profile_Users_Alias->sex):?>
						<?= $this->translate('Мужской');?>
					<?php else: ?>
						<?= $this->translate('Женский');?>
					<?php endif; ?>
				</li>
				<li>
					<span class="label"><?= $this->translate('О пользователе:');?></span> <?= $this->user->Profile_Users_Alias->about;?>
				</li>
				<?php if($this->user->Profile_Users_Alias->show_email == '1'): ?>
					<li>
						<span class="label"><?= $this->translate('Email:');?></span> <a href="mailto:<?= $this->user->email;?>"><?= $this->user->email;?></a>
					</li>
				<?php endif;?>
			<?php else: ?>
				<li>
					<?= $this->translate('Пользователь предпочел скрыть свою информацию');?>
				</li>
			<?php endif;?>
		</ul>
	</div>
</div>